added a new Eos constant option and ctest#370
added a new Eos constant option and ctest#370alicebarthel wants to merge 3 commits intoE3SM-Project:developfrom
Conversation
|
@cbegeman Is this what you had in mind? The ctest ran on pm-cpu (gnu) but I still need to do the other tests and the doc update. Can you have a look and see if that meets your needs? |
|
That looks great! Thank you for getting to this so quickly! One more thing: could we put |
|
Do you mean adding the Eos in the OceanInit, e.g. at here alongside the StateInit? Or OceanRun? |
|
I think as long as they are initialized, the fields are registered and can be output. So I think it's sufficient to do it alongside |
2b97a70 to
c9daf77
Compare
|
The latest doc will be at: https://portal.nersc.gov/project/e3sm/abarthel/doc/pr-add-constant-eos/html/ |
|
@alicebarthel and @cbegeman , this is what I need for testing the implicit vertical mixing to match results with MPAS-Ocean. I was actually about to discuss this with @cbegeman . Thank you both for your work on this. I’ll test this with time stepping after merging the branch into my testing branch and report back here. |
|
the |
|
I tested this PR by cherry-picking it into my working branch (https://github.com/hyungyukang/Omega/tree/hkang/merge-eos-const-PR). With |
Polaris
|
|
@cbegeman per your recommendation, I ran a polaris test adding I think that means that we have successfully tested the Eos init and output. @cbegeman you agree? |
|
Do we want to merge this PR or should we merge it with @hyungyukang's branch/updates to timestepping? |
Does this description suggest that we want to initialize to |
|
@cbegeman How does this look? |
a5372df to
aebcd62
Compare
|
Great! My understand is that with these changes, SpecVol is initialized to 1/RhoSw but the CTest checks that if it is initialized to 0 that computeSpecVol results in a value of 1/RhoSw. I think that's a good way to catch issues. Let me know when you are ready for me to test. |
|
Thanks Carolyn! The polaris test looks good and shows the initialization happens appropriately. I will do the first series of tests after the rebase and push asap. |
|
Ctests pass on pm-cpu (gnu, Debug) and pm-gpu (Debug). |
This PR adds a 3rd Eos option, 'constant', which simply return
1/RhoSwbased on the GlobalConstants.hChecklist